import { App, Component } from 'vue'
import SvgIcon from './SvgIcon/index.vue'

const components: Component = { SvgIcon }

export default {
  install(app: App) {
    Object.keys(components).forEach((key: string) => {
      // 遍历注册为全局组件
      app.component(key, components[key])
    })
  }
}
